<%--
  Created by IntelliJ IDEA.
  User: Do
  Date: 2017/10/18
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>Spittles</title>
</head>
<body>
    <c:forEach item="${spittleList}" var="spittle">
        <li id="spittle_<c:out value="spittle.id"/>">
            <div class="spittleMessage">
                <c:out value="${spittlr.message}"/>
            </div>
            <div>
                <span class="spittleTime"><c:out value="${spittle.time}"/></span>
                <span class="spittleLocation">(<c:out value="${spittle.latitude}"/>
                    <c:out value="${spittle.longitude}"/>)</span>
            </div>

        </li>
    </c:forEach>


</body>
</html>
